#include "maLumiere.h"

MaLumiere::MaLumiere() : Lumiere(), KeyboardListener()
{
}

MaLumiere::~MaLumiere()
{
}

void MaLumiere::onKeyboardEvent(unsigned char key, int, int)
{
  switch(key)
  {
    case '1' : 
      _specular[0] += 0.05;
      glutPostRedisplay();
      break;
    case '2' : 
      _specular[0] -= 0.05;
      glutPostRedisplay();
      break;
    case '3' : 
       _ambient[1] += 0.05;
       glutPostRedisplay();
       break;
    case '4' : 
       _ambient[1] -= 0.05;
       glutPostRedisplay();
       break;
    case '5' : 
       _diffuse[2] += 0.05;
       glutPostRedisplay();
       break;
    case '6' : 
       _diffuse[2] -= 0.05;
       glutPostRedisplay();
       break;
    case '7' : 
       _exponent -= 0.05;
       glutPostRedisplay();
       break;
    case '8' : 
       _exponent += 0.05;
       glutPostRedisplay();
       break;
    default : 
       break;
  }
}

